<style type="text/css">
    .sky {
        background-color: #b5d9ff!important;
    }
</style>
<m-page-head title="功能点版本"></m-page-head>
<div class="wrapper-md ng-scope">
    <ui-select ng-model="info.selectFeature" ng-change="onChange();" style="width:700px;">
        <ui-select-match placeholder="搜索...">{{$select.selected.show}}</ui-select-match>
        <ui-select-choices repeat="x in info.features | filter: $select.search|limitTo:15">
            <span ng-bind-html="x.show | highlight: $select.search"></span>
        </ui-select-choices>
    </ui-select>
    <br>
    <br>
    <table class="table table-bordered" ng-if="info.history.length > 0">
        <tr>
            <th style="width: 3%;">版本号</th>
            <th style="width: 10%;">需求名称</th>
            <th style="width: 15%;">创建时间</th>
        </tr>
        <tr ng-repeat="version in info.history" ng-class="version.color">
            <td ng-click="trClick(version)">
                {{version.version}}
            </td>
            <td ng-click="trClick(version)">
                {{version.reqName}}
            </td>
            <td ng-click="trClick(version)">{{version.createTime|date:'yyyy-MM-dd HH:mm:ss':'UTC'}}</td>
        </tr>
    </table>
    <br>
    <br>
    <div ng-if="info.selectVersion != null">
        <table class="table table-bordered">
            <tr>
                <td>功能描述:</td>
                <td>
                    <pre>{{ info.version.feature_desc}}</pre>
                </td>
            </tr>
            <tr>
                <td>操作输入:</td>
                <td>
                    <pre>{{ info.version.feature_in}}</pre>
                </td>
            </tr>
            <tr>
                <td>处理:</td>
                <td>
                    <pre>{{ info.version.feature_logic}}</pre>
                </td>
            </tr>
            <tr>
                <td>展示输出:</td>
                <td>
                    <pre>{{ info.version.feature_out}}</pre>
                </td>
            </tr>
            <tr>
                <td>补充描述:</td>
                <td>
                    <m-wysiwyg icon-type="text" mhtml="info.version.feature_note" mid="feature_note" is-edit="true"
                               validate="false"></m-wysiwyg>
                </td>
            </tr>
        </table>
    </div>
</div>